package com.shensi.api.admin.client.monitor;

import com.shensi.api.admin.client.fallback.monitor.SysUserOnlineClientFallBack;
import com.shensi.api.admin.client.fallback.system.SysDicTypeClientFallBack;
import com.shensi.common.core.constant.CloudConstant;
import com.shensi.common.core.constant.Constants;
import com.shensi.common.core.domain.model.LoginUser;
import com.shensi.common.core.page.TableDataInfo;
import com.shensi.common.core.utils.StringUtils;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;


/**
 * @author mao
 */
@FeignClient(
        value = CloudConstant.ADMIN_SERVER,
        fallbackFactory = SysUserOnlineClientFallBack.class)
@Component
public interface SysUserOnlineClient {

    @GetMapping("/list")
    public TableDataInfo list(@RequestParam("ipaddr") String ipaddr,@RequestParam("userName") String userName);
}
